import request from '@/utils/request';

// 锻炼类型树
export function getTree() {
    return request({
        url: '/admin/exercise/type/typeTree',
        method: 'get',
    });
}

// 分页查询-锻炼动作
export function listAction(query : any) {
    return request({
        url: '/admin/exercise/action/list',
        method: 'get',
        params: query,
    });
}

// 分页查询-锻炼系列
export function listSeries(query : any) {
    return request({
        url: '/admin/exercise/series/list',
        method: 'get',
        params: query,
    });
}

// 根据id获取（系列）
export function getSeries(seriesId : any) {
    return request({
        url: '/admin/exercise/series/' + seriesId,
        method: 'get',
    });
}

// 删除系列
export function delSeries(seriesId : any) {
    return request({
        url: '/admin/exercise/series/' + seriesId,
        method: 'delete',
    });
}
